package com.iqiyi.pps.epg.core.service.push;

import com.iqiyi.pps.epg.core.model.program.ProgramData;
import com.iqiyi.pps.epg.core.model.push.AutoPushMsg;

import java.util.Date;
import java.util.List;

/**
 * Created by zhang on 2016/1/27.
 */
public interface AutoPushMsgService {
    public void saveList(List<AutoPushMsg> entityList);
    public void save(AutoPushMsg entity);
    public boolean find(Long episodeId);
    public boolean findEffective(Long episodeId, Date currentTime);
    public List<AutoPushMsg> getPushMsg(long startTime, long endTime, int start, int max);
    public int updatePushStatusByPushTime(long startTime, long endTime, int updateStatus);
    public int updatePushStatusByIds(String ids, int updateStatus);
    public int updatePushByEpisodeId(ProgramData programData);
    public int updatePushMsgById(String ids, AutoPushMsg autoPushMsg);
}
